import request from './config';

export const getTestDataBar = () => request.get('/api/hot/post')
export const getHotCityJob = () => request.get('/api/hot/country/post')  //热门城市工作数据
export const getXueliJob = () => request.get('/api/hot/country/post2')  //学历与岗位关系
export const getHotSalaryJob = () => request.get('/api/hot/post/order/salary')//热门城市工作数据
export const getOneCitySalary = () => request.get('/api/hot/education')//一线城市学历与薪资关系
export const getCitySalaryXueli = () => request.get('/api/hot/xueli/5')//一线城市学历工资排序前五
export const getXueliRate = () => request.get('/api/other/education/rate')//学历占比
export const getHotCity = () => request.get('/api/hot/country')//热门城市
export const getExperience = () => request.get('/api/other/work/experience')//年限薪资关系
export const getAllData = (params) => request.get(`/api/all/data?xueli=${params.xueli}&job_name=${params.job_name}&page_size=${params.page_size}&page_no=${params.page_no}`)//年限薪资关系
export const getJobName = () => request.get('/api/ciyun/job/name')//岗位词云图
export const getStudent = () => request.get('/api/gaoxiao')//学生毕业人数

export const hangYeAnalysis = () => request.get('/api/job_hangye_analysis')  //岗位前10
export const fengquAnalysis = () => request.get('/api/hangye_fengqu_salary?hangye=机械/设备/重工')  //分区数据
export const xueliAnalysis = () => request.get('/api/query_yingpin_yaoqiu')  //学历数据
export const yuceAnalysis = (params) => request.get(`/api/tree_model_predict_salary?fengqu=${params.fengqu}&hangye=${params.hangye}&xueli=${params.xueli}`)  //预测
export const xialaAnalysis = () => request.get('/api/get_selectors')  //下拉数据

export const stockDiag = (keyword) => request.get(`/api/stock_diagnosis/${keyword}`)  //股票诊断
export const predictPrice = (params) => request.get(`/api/predict_stock_price/${params.code}/${params.look_back}/${params.test_ratio}/${params.epochs}`)  //价格预测
export const login = (params) => request.get(`/api/login/${params.name}/${params.pwd}`)  //下拉数据
export const regiUser = (params) => request.get(`/api/register/${params.name}/${params.pwd}`)  //下拉数据
export const getHomeData = () => request.get(`/api/hot/data`)  //下拉数据













